<?php
/**
 *User: idoiwill
 *Email: xslt@idoiwill.com
 *Blog: http://www.idoiwill.com
 *DateTime: 2017/5/15 15:01
 */

require './command/articledemoapi.php';
$obj = new ArticleDemoApi();

/***1广告图开始***/
/*$method = 'api/standard/article/get_rolling_ad';
$params = array(
    'name' => 'SpotRollingAd',
);*/
/***1广告图结束***/

/***2栏目信息开始***/
/*$method = 'api/standard/article/channel';
$params = array();*/
/***2栏目信息结束***/

/***3攻略列表页开始***/
$method = 'api/standard/article/list';
$params = array(
    'pagesize' => 2,
    'page'     => 1,
    'keyword'  => '',
    'destpy'   => '',
);
/***3攻略列表页结束***/

/***4攻略详情页开始***/
/*$method = 'api/standard/article/detail';
$params = array(
    'productid' => 1,
);*/
/***4攻略详情页结束***/

header('Content-Type:text/html;charset=utf-8');
$response = $obj->send_request($method, $params);
var_dump($response);
